import java.util.Scanner;

public class Lianxi6 {
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);

        while (true){
            System.out.println("考试是否合格？");
            String ask=input.nextLine();
        if (ask.equals("是")) {
            System.out.println("合格");
            break;
        }
        else if (ask.equals("否")){
            System.out.println("不合格");
            System.out.println("继续学习");
            continue;
        }else {
            System.out.println("输入有误");
        }
    }
}
}
